package org.zero.onlinesubject.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.zero.onlinesubject.common.vo.HomeworkVo;
import org.zero.onlinesubject.entity.Homework;

import java.util.List;

/**
 * @Entity org.zero.onlinesubject.entity.Course
 */
@Mapper
public interface HomeworkMapper extends BaseMapper<Homework> {

    int deleteHomework(Integer homeworkId, String userId);

    int insertOne(Homework homework);

    int insertBatch(List<Homework> homeworkList);

    List<HomeworkVo> getApprovalList(String senderId,String classId, String courseId, String approval, Integer current, Integer size);
}




